package demo1;

public class Demo03Phone {
    public static void main(String[] args) {
       Phone one = new Phone();
        one.brand="苹果";
        one.price=18.2;
        one.color="白色";

        methodA(one);

    }

    public static void methodA(Phone params){
        System.out.println(params.brand);
        System.out.println(params.price);
        System.out.println(params.color);
    }
}
